package com.ruoyi.stomp.domain;

/**
 * @ClassName ChatMsg
 * @Description 发送消息体
 * @Author li yang
 * @Date 2025/9/8 09:49
 * @Version 1.0
 */
public class ChatMsg {
    private String from;
    // 私信时的目标用户名
    private String to;
    private String content;

    public ChatMsg() {}

    public ChatMsg(String from, String to, String content) {
        this.from = from;
        this.to = to;
        this.content = content;
    }

    public String getFrom() { return from; }
    public void setFrom(String from) { this.from = from; }

    public String getTo() { return to; }
    public void setTo(String to) { this.to = to; }

    public String getContent() { return content; }
    public void setContent(String content) { this.content = content; }
}